(C) 1996 AROS - The Amiga Replacement OS


NAME
#include <stdio.h>
#include <aros/bigendianio.h>
#include <proto/alib.h>
BOOL ReadString()
SYNOPSIS
struct Hook * hook
STRPTR * dataptr
void * stream

FUNCTION
Reads one C string from a streamhook.

INPUTS
hook
Streamhook
dataptr
Put the data here. If you don't need the string anymore, call FreeVec() to free it.
stream
Read from this stream
RESULT
The function returns TRUE on success. On success, the string read is written into dataptr. On failure, FALSE is returned and the contents of dataptr are not changed. The string must be freed with FreeVec().

NOTES
This function reads big endian values from a streamhook even on little endian machines.

EXAMPLE
BUGS
SEE ALSO
ReadByte(), ReadWord(), ReadLong(), ReadFloat(), ReadDouble(), ReadString(), ReadStruct(), WriteByte(), WriteWord(), WriteLong(), WriteFloat(), WriteDouble(), WriteString(), WriteStruct()
HISTORY
27.03.1997 ldp
libaros.a -> libarossupport.a